function checkPasswordComplexity(pwd) {
    var letter = /[a-zA-Z]/; 
    var number = /[0-9]/;
    var valid = number.test(pwd) && letter.test(pwd); //match a letter _and_ a number
    return valid;
}

function get_browser(){

    var N=navigator.appName, ua=navigator.userAgent, tem;

    var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);

    if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1];

    M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?'];

    return M[0];

}



function get_browser_version(){

    var N=navigator.appName, ua=navigator.userAgent, tem;

    var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);

    if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1];

    M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?'];

    return M[1];

}



function disableLink(linkid)

{



    document.getElementById(linkid).disabled=true;

    document.getElementById(linkid).removeAttribute('href');    

    document.getElementById(linkid).style.cursor = 'default';

}



function showLink(linkid)

{

    document.getElementById(linkid).disabled=false;

    //assign href dynamically

    document.getElementById(linkid).href = "javascript:void(0)";

    document.getElementById(linkid).style.cursor = "hand";

}